package com.hejjon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hejjon.core.domain.entity.BasicType;
import com.hejjon.core.domain.vo.BasicTypeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author cs
 * @since 2025-03-06
 */
public interface BasicTypeMapper extends BaseMapper<BasicType> {

    List<BasicTypeVO> selectByCategoryId(@Param("categoryId") String categoryId);


    List<BasicTypeVO> selectByCategoryIdAndParams(@Param("categoryId") String categoryId,
                                                  @Param("name") String name,
                                                  @Param("text") String text);


    List<BasicType> selectByCategoryIds(@Param("categoryIds") List<String> categoryIds);


    /**
     * 分类id
     * @param categoryId
     * @return
     */
    Integer existByCategoryId(@Param("categoryId") String categoryId);



}
